package com.hsd.znsh.service;


import com.hsd.znsh.entity.Batch;
import com.hsd.znsh.pojo.output.BatchVO;
import com.hsd.znsh.pojo.query.BatchQuery;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BatchService extends BaseService {

    long getBatchListTotalPages(BatchQuery batchQuery, Integer userId);

    List<BatchVO>  getBatchList(BatchQuery batchQuery,Pageable pageable,Integer userId);

    List<BatchVO> getBatchListByHostSn(String hostSn);

    List<BatchVO> getBatchListByUser(Integer userId);

    BatchVO getBatchInfo(Integer id);

    Batch addBatch(Batch batch,String hostSn);

    void deleteBatch(Integer id);

    Batch finishBatch(Integer id);
}
